package com.twang.stock.controller.old;

import com.twang.stock.dto.BaseRequest;
import com.twang.stock.service.jinyan.StockInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping(value = "/")
@Slf4j
public class StocIndexController {

    @Autowired
    private StockInfoService stockInfoService;
    /**
     * @return
     */
    @RequestMapping(value = "index")
    public ModelAndView query(BaseRequest request) {
        ModelAndView modelAndView=new ModelAndView();
        modelAndView.setViewName("pages/index");
        return  modelAndView;
    }
    /**
     * @return
     */
    @RequestMapping(value = "bigData")
    public ModelAndView bigData(BaseRequest request) {
        ModelAndView modelAndView=new ModelAndView();
        modelAndView.setViewName("bigdata/index");
        return  modelAndView;
    }


    /**
     * @return
     */
    @RequestMapping(value = "index_v2")
    public ModelAndView index_v2(BaseRequest request) {
        ModelAndView modelAndView=new ModelAndView();
        modelAndView.setViewName("pages/index_v2");
        return  modelAndView;
    }

    /**
     * @return
     */
    @RequestMapping(value = "index_v3")
    public ModelAndView index_v3(BaseRequest request) {
        ModelAndView modelAndView=new ModelAndView();
        modelAndView.setViewName("pages/index_v3");
        return  modelAndView;
    }

    /**
     * @return
     */
    @RequestMapping(value = "index_v5")
    public ModelAndView index_v5(BaseRequest request) {
        ModelAndView modelAndView=new ModelAndView();
        modelAndView.setViewName("pages/index_v5");
        return  modelAndView;
    }
}
